package com.example.lianxi222.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.lianxi222.R;
import com.example.lianxi222.utils.GlideUtils;
import com.example.mvvm_base.base.viewmodel.BaseViewModel;
import com.example.mvvm_base.userbean.GiftEntity;

import java.util.List;

public class GiftAdapter extends BaseQuickAdapter<GiftEntity.DataBean, BaseViewHolder> {
    public GiftAdapter( @Nullable List<GiftEntity.DataBean> data) {
        super(R.layout.item_gift, data);
    }


    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, GiftEntity.DataBean dataBean) {
          baseViewHolder.setText(R.id.item_gift_price,dataBean.getPrice()+"抖币");
        GlideUtils.getInstance().CircleGlide(getContext(),dataBean.getGiftpath(),baseViewHolder.getView(R.id.item_gift_icon));
    }
}
